<?php
$route->any('login', 'AuthController@login')->name('admin.user.login');

$route->any('member/store', 'MemberController@store');

$route->group(['middleware' => 'api.auth'], function ($route) {
    
    //管理员
    $route->get('admin/index', 'AdminController@index')->name('admin.admin.index');
    $route->get('logout', 'AdminController@logout')->name('admin.admin.logout');
    $route->post('admin/store', 'AdminController@store')->name('admin.admin.store');
    $route->post('password/update', 'AdminController@updatePwd')->name('admin.password.update');
    $route->any('permission', 'AuthController@permission');
    $route->any('reset/password', 'AdminController@resetPassword');
    $route->any('admin/destroy', 'AdminController@destroy');
    $route->any('admin/info', 'AdminController@info');


    $route->get('member/index', 'MemberController@index');
    $route->any('member/destroy', 'MemberController@destroy');

});

